
class ProductDetail {
    int id;
    List<String> images;
    String main_picture;
    String qrcode;
    String video;

    ProductDetail({this.id, this.images, this.main_picture, this.qrcode, this.video});

    factory ProductDetail.fromJson(Map<String, dynamic> json) {
        return ProductDetail(
            id: json['id'],
            images: json['images'] != null ? new List<String>.from(json['images']) : null,
            main_picture: json['main_picture'],
            qrcode: json['qrcode'],
            video: json['video'],
        );
    }

    Map<String, dynamic> toJson() {
        final Map<String, dynamic> data = new Map<String, dynamic>();
        data['id'] = this.id;
        data['main_picture'] = this.main_picture;
        data['qrcode'] = this.qrcode;
        if (this.images != null) {
            data['images'] = this.images;
        }
        data['video'] = this.video;
        return data;
    }

    @override
    String toString() {
        return 'ProductDetail{id: $id, images: $images, main_picture: $main_picture, qrcode: $qrcode, video: $video}';
    }


}